package com.huangliusong.demohls;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnProperty(prefix = "hls",name = {"name","age"},havingValue = "123",matchIfMissing = false)
public class Test {
    @Bean
    public Datas oauth2FeignRequestInterceptor() {
        Datas datas=new Datas();
        datas.setAge(1);
        datas.setName("huangliusong");
        System.err.println(datas);
        return datas;
    }
}
